home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
CSound
/
print-csound
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-25
|
866b
|
37 lines
print-csound
filename gens instrument type end? &rest p-fields
Creates a file with name -> filename
to be used as a score-file in Csound.
type can be :append :overwrite
ex:
(setq starts '(0 1 2 3 4 5 6))
(setq lengths '(1 1 2 1 1 2 1))
(setq amplitudes '(8000 5000 12000 8000 6000 2000 5000))
(setq pitch '(440 550 660 770 880 990 1100))
(print-CSound
"ccl:test.sco"
'((f1 0 4096 10 1 0.5 0.1))
'i1
:overwrite ;overwrites if file already exists
nil ;does not add endin
starts lengths amplitudes pitch)
(setq starts2 '(0 0.5 2.5 3.2 4.3 5.1 6.8))
(setq lengths2 '(0.5 0.5 0.5 0.5 0.5 0.5 0.5))
(setq amplitudes2 '(5000 6000 7000 6000 6000 10000 5000))
(setq pitch2 '(335 445 555 665 775 885 995))
(print-CSound
"ccl:test.sco"
nil ;only needs gens once in the file
'i1
:append ;adds to existing file
t ;adds endin
starts2 lengths2 amplitudes2 pitch2)